<?php
// +----------------------------------------------------------------------
// | ThinkCrypto
// +----------------------------------------------------------------------
// | 版权所有 2014~2021 青海云音信息技术有限公司 [ http://www.yyinfos.com ]
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// +----------------------------------------------------------------------
// | gitcode 代码仓库：https://gitcode.net/qhweb/ThinkCrypto
// +----------------------------------------------------------------------
declare(strict_types=1);

namespace think\crypto;

use think\crypto\service\Crypto;
use think\crypto\service\Loader;
use think\crypto\command\Encode;
use think\crypto\command\Decode;
/**
 * 加密服务注册类
 * Class Service
 * @package think\crypto
 */
class Service extends \think\Service
{
    public function register()
    {
        // 注册 ThinkAdmin 指令
        $this->commands([
            Encode::class,
            Decode::class
        ]);
        $this->app->bind('crypto',Crypto::class);
    }

    public function boot()
    {
        Loader::init();
    }
}
